<?php
require( "Application.php"); 
$storeManager = new StoreManager();
echo json_encode($storeManager->getStores());

/*
$sql="select store_id, store, descr, address, city, state, zip, 
      lat, lng, phone, email, website, twitter, facebook from stores where store_id = 37";
$result = mysql_query($sql);
$ar = array();
//$bob=json_encode(mysql_fetch_assoc ($result));
while($ar[] = mysql_fetch_assoc ($result)){}

//echo $ar;
echo json_encode($ar);
mysql_free_result($result);
*/

require( "OnRequestEnd.php"); 
?>